package net.monare.mifss.evn;

import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Layout;

public class RemovePropertyListener implements ClickListener {

	private static final long serialVersionUID = -1321215962909386690L;

	private Layout layout;

	public RemovePropertyListener(Layout layout) {
		this.layout = layout;
	}

	public void buttonClick(ClickEvent event) {
		
		Layout parent = (Layout)layout.getParent();
		parent.removeComponent(layout);
		
		
		
	}

}
